import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [

  {
    title: '平台',
    align:"center",
    dataIndex: 'platform_dictText'
  },
  {
    title: '商品名称',
    align:"center",
    dataIndex: 'name'
  },
    {
    title: '商品编码',
    align:"center",
    dataIndex: 'productNo'
  },

  {
    title: '商品链接',
    align:"center",
    dataIndex: 'url'
  },
  {
    title: '新品',
    align:"center",
    dataIndex: 'isNew_dictText'
  },
  {
    title: '大促价',
    align:"center",
    dataIndex: 'promotionalPrice'
  },
  {
    title: '备注',
    align:"center",
    dataIndex: 'remark'
  },
  {
    title: '当前价',
    align:"center",
    dataIndex: 'currentPrice'
  },
  {
    title: '历史最低',
    align:"center",
    dataIndex: 'historicalLow'
  },
    {
    title: '当前价v2',
    align:"center",
    dataIndex: 'currentPriceV2'
  },

    {
    title: '创建日期',
    align:"center",
    dataIndex: 'createTime'
  },
  {
    title: '更新日期',
    align:"center",
    dataIndex: 'updateTime'
  },

];

//子表列表数据
export const priceInquiryDetailsColumns: BasicColumn[] = [
  {
    title: '创建日期',
    align:"center",
    dataIndex: 'createTime'
  },
  {
    title: '上级id',
    align:"center",
    dataIndex: 'pid'
  },
  {
    title: '当前价格',
    align:"center",
    dataIndex: 'currentPrice'
  },
  {
    title: '历史最低',
    align:"center",
    dataIndex: 'historicalLow'
  },
    {
    title: '当前价格v2',
    align:"center",
    dataIndex: 'currentPriceV2'
  },
];

// 高级查询数据
export const superQuerySchema = {
  createTime: {title: '创建日期',order: 0,view: 'datetime', type: 'string',},
  updateTime: {title: '更新日期',order: 1,view: 'datetime', type: 'string',},
  platform: {title: '平台',order: 2,view: 'list_multi', type: 'string',dictCode: 'ecommerce_platform',},
  name: {title: '商品名称',order: 3,view: 'text', type: 'string',},
  url: {title: 'url',order: 4,view: 'text', type: 'string',},
  currentPrice: {title: '当前价',order: 5,view: 'text', type: 'string',},
  historicalLow: {title: '历史最低',order: 6,view: 'text', type: 'string',},
};
